package hadoop.mr03;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

public class Free_Reducer extends Reducer<Text,Food_City, Text,Food_City> {
    @Override
    protected void reduce(Text key, Iterable<Food_City> values, Reducer<Text, Food_City, Text, Food_City>.Context context) throws IOException, InterruptedException {
        for(Food_City fc:values){
            context.write(key, fc);
        }

    }
}
